package com.guomao.demoi;

import java.util.ArrayList;

public class JavaDemo3 {

    public static void main(String[] args) {


        ArrayList<String> list = new ArrayList<>();
        list.add("Hello");
        list.add("World");

        list.stream().map((String name) -> new Person(name, 20)).forEach(System.out::println);
    }
}
